const HtmlCacheFix = require('../bundler')

module.exports = class HtmlCacheFixWebpackPlugin {
  name = 'webpack:html-cache-fix'
  constructor(options) {
    this.options = options
  }
  apply(compiler) {
    compiler.hooks.afterEmit.tap(this.name, () => {
      HtmlCacheFix(this.options)
    })
  }
}
